package com.hdsx.restful.base;

public class DBSwitch {
	
	private static final ThreadLocal<String> contextHolder = new ThreadLocal<String>();
   
	public static final String GISDB="GISDB";
	
	public static final String GISDBTEMP="GISDBTEMP";
	public static void setDBType(String dbType) {
        contextHolder.set(dbType);
    }
	
    public static String getDBType() {
        return (String) contextHolder.get();
    }
    
    public static void clearDBType() {
        contextHolder.remove();
    }

}
